<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String flag = (String)request.getAttribute("flag");
String actionUrl = "person/add.do";
String content = "添加主副险信息";
String buttonText = "保存";
String fuc = "save()";
if ("edit".equals(flag)) {
	actionUrl = "person/edit.do";
	content = "编辑主副险信息";
	buttonText = "更新";
	fuc = "update()";
} else if ("detail".equals(flag)) {
	actionUrl = "";
	content = "查看主副险信息";
	buttonText = "返回";
	fuc = "go_back_query()";//返回到保单主信息查看页面
} 

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<%@include file="/public/head.jspf"%>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="${dailySupport}/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${dailySupport}/js/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="${dailySupport}/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="${dailySupport}/js/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css"></link>
<!-- 先加载moment-with-locales.min.js ，后加载datetimepicker.min.js -->
<script src="${dailySupport}/js/moment/min/moment-with-locales.min.js"></script>
<script src="${dailySupport}/js/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
<script src="${dailySupport}/js/com/sunny/core/policy/policy_info_crud.js"></script>

</head>

<body>
<div style="padding:0px; margin:0px;">
 <ul class="breadcrumb" style="  margin:0px; " >
    	<li><a href="#">系统管理</a></li>
        <li>保单管理</li>
        <li><%=content%></li>
        
    </ul>
</div>

<form id="policyInfoForm" action="${dailySupport}/<%=actionUrl%>" class="form-horizontal" method="post"
		onkeydown="if(event.keyCode==13)return false;">
    <h5 class="page-header alert-info" style="padding:10px; margin:0px; margin-bottom:5px;">基本信息</h5>
	<div class="row">
<%--   	<div class="col-sm-5">
        	<div class="form-group">
            	<label class="col-sm-3 control-label">保单号</label>
                <div class="col-sm-9">
                	<input type="text" name="policyCode" class="form-control input-sm" placeholder="" value="${policyInfo.policyCode}"/>
                </div>
            </div>
        
        </div> --%>
        <div class="col-sm-5">
            <div class="form-group">
            	<label class="col-sm-3 control-label">险种名称</label>
                <div class="col-sm-9">
                	<input type="text" name="insuranceName"  class="form-control input-sm" placeholder="" value="${policyInfo.insuranceName}"/>
                </div>
            </div>
        </div>
        <div class="col-sm-5">
            <div class="form-group">
            	<label class="col-sm-3 control-label">应缴保费</label>
                <div class="col-sm-9">
                	<input type="text" name="premiumPayable"  class="form-control input-sm" placeholder="" value="${policyInfo.premiumPayable}"/>
                </div>
            </div>
        </div>
    </div>
	<div class="row">
    	<div class="col-sm-5">
        	<div class="form-group">
            	<label class="col-sm-3 control-label">交费期间</label>
                <div class="col-sm-9">
                	<input type="text" name="paymentPeriod" class="form-control input-sm" placeholder="" value="${policyInfo.paymentPeriod}"/>
                </div>
            </div>
        
        </div>
        <div class="col-sm-5">
            <div class="form-group">
            	<label class="col-sm-3 control-label">保险期间</label>
                <div class="col-sm-9">
                	<input type="text" name="insurancePeriod"  class="form-control input-sm" placeholder="" value="${policyInfo.insurancePeriod}"/>
                </div>
            </div>
        </div>
    </div>
   	<div class="row">
    	<div class="col-sm-3 col-sm-offset-4">
        	<input  type="button" class="btn btn-success" value="<%=buttonText%>" onclick="<%=fuc%>"/>
        	<% if (!("detail".equals(flag))) { %>
            <input  type="reset" class="btn  btn-danger" value="重置"/>
            <input type="button" class="btn btn-warning" value="返回" onclick="go_back()"/>
            <% } %>
            
        </div>
    </div>
    <input type="hidden" name="policyInfoPid" value="${policyInfo.policyInfoPid}"/>
    <input type="hidden" name="policyMasterPid" value="${policyInfo.policyMasterPid}"/>
</form>

</body>
</html>
